print('nihao')
print('workspace')
a = eval('2+1')
caipeiyan = 123
b = eval('[11,caipeiyan,44]')
c = eval('{"a":1}')
print(a)
print(b)
print(c)
print(type(c))

class A:
    name = 'xx'


a = A()
sex = getattr(a,'sex','nan')
print(sex)

class B:
    def aaa(self):
        print('方法aaa')

    def print_name(self,name):
        print(f'你的名字是{name}')

b = B()
getattr(b,'aaa')()
getattr(b,'print_name')('cai')

a_dict = {
"a":1,
"v":2
}
c = eval('a_dict["v"]')
print(c)


v1 = {"var_token":'123'}
d = {'token':'v1["var_token"]'}
e1 = eval(str(d))
print(e1)

e2 = eval(d['token'])
d['token'] = e2
print(d)

zz = {"token":'eval(v1["var_token"])'}
print(eval(zz['token']))

a1 = {'dict':1}
a2 = a1

a2['zzz'] = 2
print(a1)

# python3 -m pytest cases --alluredir=./dir --clean-alluredir
#allure generate ./dir -o ./report --clean
